< previous page page_636 next page >

Page 636
select a profile type and click the Add Profiler Code button, the Code Profiler copies the forms and modules in your project. The original files are renamed to the same name, except with a tilde (~) in place of the last character of the filename extension. The copies are then used to create a working copy of your project. Finally, the analysis code is added to the code in your project.
When you finish analyzing your code, you can view the analysis results by choosing File View Results from the menu. Then when you're ready, you can remove the added code by clicking the Remove Profiler Code button, which deletes the working copies and restores the original files to your project.
Note
Your original code isn't affected by the Code Profiler; only the working copies are affected. However, you should back up your project before running the Code Profiler, just in case.

Using It with Your Application..
Using the Code Profiler is really quite simple. To show you what it does, I'll use the VISDATA.VBP project that comes in the Visual Basic \SAMPLES directory. Start Visual Basic and open the VISDATA project. From the Add-Ins menu, choose Code Profiler to display its dialog box (see Figure C.12).
12181-0636a.gif
Figure C.12.
The Code Profiler dialog box is where all the action takes place when
you're analyzing your project.
You can see that the modules and forms for your project are listed in the list box. You also start the Code Profiler first and then open your project; the Code Profiler then loads the project's forms and modules automatically.

 
< previous page page_636 next page >

If you like this book, buy it!